package cn.stylefeng.guns.modular.commodity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/**
 * @author allen
 * @date 2021/4/11 17:59
 * @version 1.0
 */

/**
 * 商品sku信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "commodity_goods_sku")
public class CommodityGoodsSkuEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品ID
     */
    @TableField(value = "goods_id")
    private Long goodsId;

    /**
     * sku编号
     */
    @TableField(value = "sku_code")
    private String skuCode;

    /**
     * 采购价格
     */
    @TableField(value = "purchase_price")
    private BigDecimal purchasePrice;

    /**
     * 销售价格
     */
    @TableField(value = "sale_price")
    private BigDecimal salePrice;

    /**
     * 促销价格
     */
    @TableField(value = "discount_price")
    private BigDecimal discountPrice;

    /**
     * 销售属性
     */
    @TableField(value = "sale_properties")
    private String saleProperties;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    private Date gmtCreate;

    /**
     * 更新时间
     */
    @TableField(value = "gmt_modified")
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_GOODS_ID = "goods_id";

    public static final String COL_SKU_CODE = "sku_code";

    public static final String COL_PURCHASE_PRICE = "purchase_price";

    public static final String COL_SALE_PRICE = "sale_price";

    public static final String COL_DISCOUNT_PRICE = "discount_price";

    public static final String COL_SALE_PROPERTIES = "sale_properties";

    public static final String COL_GMT_CREATE = "gmt_create";

    public static final String COL_GMT_MODIFIED = "gmt_modified";
}